package net.zhnb.service.impl;

import java.util.List;

import javax.annotation.Resource;

import net.zhnb.bean.Room;
import net.zhnb.bean.RoomKey;
import net.zhnb.dao.RoomDao;
import net.zhnb.service.RoomService;
import finaler.util.Page;
import finaler.util.PageList;

public class RoomServiceImpl implements RoomService {

	@Resource
	private RoomDao roomDao;

	@Override
	public PageList getPageList(Page page) throws Exception {
		return roomDao.getPageList(page);
	}

	@Override
	public boolean insert(Room room) throws Exception {
		return roomDao.insert(room);
	}

	@Override
	public boolean deleteByKey(RoomKey key) throws Exception {
		return roomDao.deleteByKey(key);
	}

	@Override
	public Room findByKey(RoomKey key) throws Exception {
		return roomDao.findByKey(key);
	}

	@Override
	public boolean update(Room room) throws Exception {
		return roomDao.update(room);
	}

	@Override
	public List<Room> findAll() throws Exception {
		return roomDao.findAll();
	}
	
}
